package Test1;

public class Question8 {

    public String brand;
    public String color;
    public void run(){
        System.out.println("i am runnung");
    }
    public Question8(String b,String b1){
        this.brand=b;
        this.color=b1;
    }

}

class car extends Question8{

    public car(String b, String b1) {
        super(b, b1);
    }
}

class Truck extends Question8{

    public Truck(String b, String b1) {
        super(b, b1);
    }
}